<?php
class ClassModel extends CommonModel {
	protected $_validate	 =	 array(
		array('level_id','require','请选择年级！',1),
		array('class_name','require','班名不能为空！',1),
		array('class_code','require','班号不能为空！',1),
		//array('teacher_id','require','请选择班主任！',1)
		);
	protected $_auto	 =	 array(
		array('create_time','time',self::MODEL_INSERT,'function'),
		array('school_id','getschool',1,'callback'),
		array('type','1',1,''),
		);

	



	
}